﻿namespace 三
{
    internal class Program
    {
        static void Main(string[] args)
        {
            for (int i = 100; i < 999; i++)
            {
                findsx(i);
            }
        }
        static void findsx(int n)
        {
            int g = 0, s = 0, b = 0;
            g = n % 10;
            s = n / 10 % 10; b = n / 100;
            if (g * g * g + s * s * s + b * b * b == n)
            {
                Console.WriteLine(n);
            }
        }
    }
}
